// TimeManager.h: interface for the TimeManager class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TIMEMANAGER_H__E4D05A10_E203_4317_A17E_9A378038A42A__INCLUDED_)
#define AFX_TIMEMANAGER_H__E4D05A10_E203_4317_A17E_9A378038A42A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class TimeManager
{
protected:
	TimeManager();
	virtual ~TimeManager();

public:
	static TimeManager * Instance();
	static void DeleteInstance();

	const CTime& GetTime() const {return m_time;}
	void SetTime(const CTime& time) {m_time = time;}

	bool IsDateDifferent(const CTime& time) const;

protected:
	CTime m_time;

private:
	static TimeManager * m_pInstance;
};

#endif // !defined(AFX_TIMEMANAGER_H__E4D05A10_E203_4317_A17E_9A378038A42A__INCLUDED_)
